.el-table {
  thead {
    color: $body-color;
  }

  td,
  th {
    padding: 0;

    > .cell {
      padding: 0.5rem;
      line-height: $line-height;
    }
  }

  &.table-sm {
    td,
    th {
      > .cell {
        padding: 0.25rem;
      }
    }
  }

  .el-table__row {
    &.row-warning td {
      background-color: #faecd8 !important;
    }
    &.row-danger td {
      background-color: #fde2e2 !important;
    }
  }
}

.query-form {
  border: 1px solid rgba(51, 51, 51, 0.125);
  border-radius: $border-radius;
  box-shadow: $box-shadow-base;
  padding: 0.85rem 0.85rem 0 0.85rem;
  background-color: #fff;
  margin-bottom: 0.25rem;
  position: relative;
  overflow: hidden;
}

.query-table-form {
  border-top: 1px solid $border-color;
  border-left: 1px solid $border-color;
  border-right: 1px solid $border-color;
  border-top-left-radius: $border-radius;
  border-top-right-radius: $border-radius;
  box-shadow: $box-shadow-base;
  padding: 0.85rem 0.85rem 0 0.85rem;
  background-color: #fff;
  margin-bottom: 0;
  overflow: hidden;
}

.el-form {
  .el-form-item__label {
    padding-top: calc(0.375rem + 1px);
    padding-bottom: calc(0.375rem + 1px);
    margin-bottom: 0;
    font-size: inherit;
    line-height: $line-height;
  }

  &.el-form--inline {
    .el-form-item {
      margin-bottom: 1rem;
    }

    .el-input__inner,
    .el-checkbox {
      vertical-align: middle;
    }

    .el-radio-button__inner {
      line-height: $line-height;
    }
  }
}

.query-pagination {
  background-color: #fff;
  padding: 0.5rem;
  border: 1px solid $border-color;
  margin-top: -1px;
  box-shadow: $box-shadow-base;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.el-input-group__append,
.el-input-group__prepend {
  padding: 0 1rem;
  color: $gray-600;
}

.card-table {
  &.el-table--border {
    border-left: none;

    &::after {
      width: 0;
    }

    th.is-leaf {
      background-color: $gray-100;
      &:nth-last-child(2) {
        border-right: none;
      }
    }

    td:last-child {
      border-right: none;
    }
  }
}

.el-menu.el-menu-sm {
  border-right: none;
  .el-menu-item,
  .el-submenu__title {
    height: 40px;
    line-height: 40px;
  }
}

.el-menu-sidebar {
  .menu-title,
  .el-submenu__title {
    // font-size: 1.15rem;
    font-weight: 600;
  }
  i.menu-icon {
    margin-right: 0.5rem;
  }
  .el-submenu__icon-arrow {
    margin-top: -4px;
  }
  .el-submenu {
    .el-menu-item {
      min-width: auto;
      padding-right: 1rem;
    }
    .el-menu-item,
    .el-submenu {
      .menu-title {
        padding-left: 0.8rem;
        font-weight: normal;
      }
    }
  }
  .el-menu-item.is-active {
    background-image: linear-gradient(
      0deg,
      var(--primary-transparent-1),
      var(--primary-transparent-1)
    );
  }
}

.el-dialog {
  border-radius: $border-radius;
  .el-dialog__headerbtn:focus {
    outline: 0;
  }
}

.form-control-ml {
  max-width: 360px;
  width: 100%;

  &.el-input-number {
    width: 100%;

    .el-input__inner {
      text-align: left;
    }
  }

  &.el-date-editor {
    width: 100%;
  }
}

.form-control-sl {
  max-width: 220px;
}

.customer-autocomplete {
  li {
    line-height: normal;
    padding: 0.5rem 1rem;

    &:hover {
      background-color: $gray-100;
    }
  }
}

// .el-tag--medium {
//   line-height: 28px;
// }

.dialog-sm {
  .el-dialog__body {
    padding-top: 1rem;
  }
}

.el-checkbox + .el-checkbox {
  margin-left: 0;
}
.el-checkbox:not(:last-child) {
  margin-right: 1rem;
}

.el-input.text-center .el-input__inner {
  text-align: center;
}

.el-cascader-long .el-cascader-menu__wrap {
  height: 510px;
}

.el-date-editor .el-range-separator {
  padding: 0;
}
.el-date-editor--daterange.el-input__inner.date-picker-ml {
  width: 300px;
}

.upload-oss .el-upload-list__item {
  transition-duration: 0.25s;
}
